<include file="Public/head"/>
<body class="no-skin">
<include file="Public/header"/>
<div class="main-container" id="main-container">
    <script type="text/javascript">
        try {
            ace.settings.check('main-container', 'fixed')
        } catch (e) {
        }
    </script>

    <include file="Public/sidebar"/>
    <div class="main-content">
        <div class="main-content-inner">
            <!-- #section:basics/content.breadcrumbs -->
            <include file="Public/breadcrumbs"/>

            <!-- /section:basics/content.breadcrumbs -->
            <div class="page-content">
                <include file="Public/set"/>

                <!-- /section:settings.box -->
                <div class="row">
                    <div class="col-xs-12">
                        <form class="form-horizontal" id="form" method="post" action="{:U('update')}" enctype="multipart/form-data">

                            <!-- PAGE CONTENT BEGINS -->
                           <input type="hidden" name="aid" value="{$article.aid}" id="aid"/>
                            <div class="space-4"></div>
                            <div class="form-group">
                                <label class="col-sm-1 control-label no-padding-right" for="form-field-3">
                                    文档地区 </label>
                                <div class="col-sm-9">
                                        <input type="text" name="area" id="area" placeholder="中国"
                                           class="col-xs-10 col-sm-5" value="{$article['title']}">
                                    <span class="help-inline col-xs-12 col-sm-7">
                                                <span class="middle">文档地区。</span>
                                            </span>
                                </div>
                            </div>
                            <div class="form-group">
                                <label class="col-sm-1 control-label no-padding-right" for="form-field-3">
                                    文档语言 </label>
                                <div class="col-sm-9">
                                        <input type="text" name="language" id="language" placeholder="中文"
                                           class="col-xs-10 col-sm-5" value="{$article['title']}">
                                    <span class="help-inline col-xs-12 col-sm-7">
                                                <span class="middle">文档语言。</span>
                                            </span>
                                </div>
                            </div>
                            <div class="space-4"></div>
                            <div class="form-group">
                                <label class="col-sm-1 control-label no-padding-right" for="form-field-4">
                                    文件上传 </label>
                                <div class="col-sm-9">
                                    <input name='myfile' style="cursor:pointer;" type='file' />
                                     <input type="hidden" name="MAX_FILE_SIZE" value="204800" />
                                     <input type="hidden" name="type" value="webfile"/>
                                    <span class="help-inline col-xs-12 col-sm-7">
                                                <span class="middle">仅支持txt、pdf、doc、docx，且小于10MB。</span>
                                            </span>
                                </div>
                            </div>
                            <div class="col-md-offset-2 col-md-9">
                                <button class="btn btn-info submit" type="button">
                                    <i class="icon-ok bigger-110"></i>
                                    提交
                                </button>

                                &nbsp; &nbsp; &nbsp;
                                <button class="btn" type="reset">
                                    <i class="icon-undo bigger-110"></i>
                                    重置
                                </button>
                            </div>
                            <!-- PAGE CONTENT ENDS -->
                        </form>
                    </div><!-- /.col -->
                </div><!-- /.row -->
            </div><!-- /.page-content -->
        </div>
    </div><!-- /.main-content -->
    <include file="Public/footer"/>

</div><!-- /.main-container -->

<include file="Public/footerjs"/>
<!-- inline scripts related to this page -->
<script type="text/javascript">
    $(function () {
        
        $(".submit").click(function () {
            var title = $("#title").val();
            
            
            if (title == '') {
                bootbox.dialog({
                    title: '友情提示：',
                    message: "文档标题必须填写。",
                    buttons: {
                        "success": {
                            "label": "确定",
                            "className": "btn-danger"
                        }
                    }
                });
                return;
            }
            $("#form").submit();
        });
    });
</script>
</body>
</html>
